package com.iris.live.services.data.models;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by yitianle on 2017/8/9.
 */
@Entity
@Table(name = "group_area", schema = "", catalog = "")
public class GroupAreaModel {
    private Integer id;
    private String areaName;
    private Integer parentId;
    private String permit;
    private String dealerName;
    private String dealerAddress;
    private Integer status;
    private Integer isDealer;
    private Date createdTime;
    private String brand;

    public GroupAreaModel() {
    }

    public GroupAreaModel(String areaName, Integer parentId, Integer status, Date createdTime) {
        this.areaName = areaName;
        this.parentId = parentId;
        this.status = status;
        this.createdTime = createdTime;
    }

    public GroupAreaModel(String areaName, Integer parentId, String permit, String dealerName, String dealerAddress, Integer status, Date createdTime) {
        this.areaName = areaName;
        this.parentId = parentId;
        this.permit = permit;
        this.dealerName = dealerName;
        this.dealerAddress = dealerAddress;
        this.status = status;
        this.createdTime = createdTime;
    }

    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Basic
    @Column(name = "area_name")
    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    @Basic
    @Column(name = "parent_id")
    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    @Basic
    @Column(name = "permit")
    public String getPermit() {
        return permit;
    }

    public void setPermit(String permit) {
        this.permit = permit;
    }

    @Basic
    @Column(name = "dealer_name")
    public String getDealerName() {
        return dealerName;
    }

    public void setDealerName(String dealerName) {
        this.dealerName = dealerName;
    }

    @Basic
    @Column(name = "dealer_address")
    public String getDealerAddress() {
        return dealerAddress;
    }

    public void setDealerAddress(String dealerAddress) {
        this.dealerAddress = dealerAddress;
    }

    @Basic
    @Column(name = "status")
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Basic
    @Column(name = "created_time")
    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    @Basic
    @Column(name = "brand")
    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    @Basic
    @Column(name = "is_dealer")
    public Integer getIsDealer() {
        return isDealer;
    }

    public void setIsDealer(Integer isDealer) {
        this.isDealer = isDealer;
    }
}
